package com.coolwen.dao;

import com.coolwen.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectBelongGroupsByUserId(Integer userId);

    List<User> selectByGroupId(Integer groupId);

    User selectByUserOpenIdAndUserPassword(@Param("userOpenId")String userOpenId,@Param("userPassword")String userPassword);
}